Skip to content

Conversation

@chienandalu
Copy link
Member

@chienandalu chienandalu commented Dec 23, 2025

  • Now product lead times are integers, so we better deal with whole days instead.
  • Added a sales cutt-off calendar so we can avoid salesmen scheduling deliveries that won't reach on time.

cc @moduon MT-12188

chienandalu and others added 6 commits December 18, 2025 16:51
Users who set the delivery date expect it to be present in order to be able
to filter by it.

MT-9790
The delivery date is computed by default from the expected date.
We can still edit it, but if can't be delivered, it will be force
on confirmation.

MT-9790
When the lead time has decimals (for example, 1.5 = 36 hours) a lot of false
positives are raised for the delivery exceptions. as the default hour for the
delivery date is the current one. For example: in that case if the current hour
is 01:00, the expected date will be 13:00 for the next day, but when we set the
delivery date for tomorrow, the default hour will be tomorrow at 1:00, which is
before that expected day. The users tend to ignore the warnings after stumbling
upon these cases over and over.

So now:

- There's a new delivery date helper field to simply set the date (no time) that
  sets the hour to 23.59.59 for the delivery date (commitment_date)
- The delivery date can be still changed manually whenever that info is important
  as usal in the standard.

MT-9790
Currently translated at 100.0% (6 of 6 strings)

Translation: sale-workflow-16.0/sale-workflow-16.0-sale_order_safe_commitment_date
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-16-0/sale-workflow-16-0-sale_order_safe_commitment_date/es/
@chienandalu chienandalu force-pushed the 18.0-mig-sale_order_safe_commitment_date branch from cb3cd7b to db19253 Compare January 2, 2026 09:19
@rousseldenis
Copy link
Contributor

/ocabot migration sale_order_safe_commitment_date

@rousseldenis
Copy link
Contributor

@chienandalu Could you check tests ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants